//
//  LocalizedButton.m
//  Statz
//
//  Created by Dave MacLachlan on 2008/01/04.
//  Copyright 2008 Google Inc. All rights reserved.
//

#import "LocalizedButton.h"


@implementation LocalizedButton
- (void)setTitle:(NSString *)aString {
  NSString *localizedTitle = NSLocalizedString(aString, @"setTitle");
  [super setTitle:localizedTitle];
}

- (void)setAlternateTitle:(NSString *)aString {
  NSString *localizedTitle = NSLocalizedString(aString, @"setAlternateTitle");
  [super setAlternateTitle:localizedTitle];
}


- (void)awakeFromNib {
  [self setTitle:[self title]];
  [self setAlternateTitle:[self alternateTitle]];
}
@end
